package com.devinlee.designpatterns.strategy;

import com.devinlee.designpatterns.strategy.pay.Alipay;
import com.devinlee.designpatterns.strategy.pay.WeChatPay;

/**
 * 策略模式-Demo
 */
public class Demo {

    public static void main(String[] args) {

        Order order1 = new Order(1);
        order1.pay(new WeChatPay());

        Order order2 = new Order(2);
        order2.pay(new Alipay());
    }
}
